package com.demo;

//创建一个User类，对此用户进行操作
public class User {
    private String card;
    private String password;
    private int money;

    public User(String card, String password, int money) {
        super();
        this.card = card;
        this.password = password;
        this.money = money;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "[卡号=" + card + ", 密码=" + password + ", 余额=" + money + "]";
    }
}
